<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lzc="http://schemas.icitadel.com/Lazarus/Compiled.xsd" version="1.0">

	<xsl:output method="text"/>

	<xsl:include href="../../common.xsl" />
	<xsl:include href="../../convert.xsl" />

   <xsl:template match="lzc:project">
	<xsl:text>-- Update Statistics and Resample Tables.
</xsl:text>
<xsl:for-each select="lzc:tables/lzc:table[ count( lzc:fields/lzc:field ) &gt; 0 ]">
	<xsl:text>UPDATE STATISTICS [tbl</xsl:text>
	<xsl:value-of select="@name" />
	<xsl:text>] WITH RESAMPLE
</xsl:text>
   </xsl:for-each>
   </xsl:template>

</xsl:stylesheet>
  